package com.xinjie.controller;

import com.xinjie.pojo.Login;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class LoginController  {

    @ResponseBody // 不跳转页面
    @RequestMapping("/login")
    public String login(Login login) {
        System.out.println(login);
        return "success";
    }


}
